# gnumake

CC	= dmc
LIBR	= lib
CFLAGS	= -Jm -I.

ALL_OBJ	= $(patsubst %.c, %.obj, $(wildcard *.c))

all: test.exe

%.obj: %.c
	$(CC) $(CFLAGS) $^ -c -o$@

test.exe: $(ALL_OBJ)
	link $^,$@,,advapi32+ws2_32+user32+shell32+kernel32/noi/delexe;

clean:
	del /Q /S *.map *.obj *.lib *.bak
